import { configureStore } from "@reduxjs/toolkit";
import { userInfoSlice } from "./slice/userInfo";
import { subjectSlice } from "./slice/subject";

export const store = configureStore({
	reducer: {
		userInfo: userInfoSlice.reducer,
		subject: subjectSlice.reducer,
	},
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
